﻿using System.Collections.Generic;
using NewsPortal.DataContracts;

namespace NewsPortal.Models
{
    public class EditorModel
    {
        private readonly List<Category> categoriesList = new List<Category>();

        public void AddCategory(Category cat)
        {
            categoriesList.Add(cat);
        }
        public Category[] Categories
        {
            get
            {
                return categoriesList.ToArray();
            }
        }
    }
}